package com.yxx.business.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.yxx.common.core.domain.BaseEditDtoEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.experimental.Accessors;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * 人员排放EditDto对象 tb_personnel_emission
 *
 * @author yxx
 * @date 2025-08-16
 */
@Schema(description = "人员排放编辑实体")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Builder
@Data
public class TbPersonnelEmissionEditDto extends BaseEditDtoEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "表ID")
    private Long personnelId;

    @Schema(description = "工程ID")
    private Long engineeringId;

    @Schema(description = "使用阶段")
    @NotNull(message = "使用阶段不能为空")
    private String usagePhase;

    @Schema(description = "人员总数")
    private Long totalPersonnel;

    @Schema(description = "工作天数")
    private Long workDays;

    @Schema(description = "碳排放因子(kgCO2/人·天)")
    private BigDecimal emissionFactor;

    @Schema(description = "人员碳排放量(kgCO2)")
    private BigDecimal totalEmission;

    @Schema(description = "创建者id")
    private Long createById;

    @Schema(description = "更新者id")
    private Long updateById;

}
